package com.h3bpm.web.common.domin;

import java.util.HashMap;
import java.util.UUID;

/**
 * ESB请求头部信息
 *
 */
public class EsbReqHead extends HashMap<String, String> {

    private static final long serialVersionUID = 1L;

    /** 源系统 */
    public static final String source_System = "sourceSystem";

    /** 指向系统 */
    public static final String target_System = "targetSystem";

    /** 源系统 */
    public static final String request_Id = "requestId";

    /** 指向系统 */
    public static final String service_Name = "serviceName";

    public EsbReqHead(String sourceSystem, String targetSystem, String requestId,String serviceName)
    {
        super.put(source_System, sourceSystem);
        super.put(target_System, targetSystem);
        super.put(request_Id, org.apache.commons.lang.StringUtils.isNotBlank(requestId)?requestId:
    UUID.randomUUID().toString());
        super.put(service_Name, serviceName);
    }

    public EsbReqHead()
    {
        super();
    }
}
